package d;

import java.sql.*;


import javax.naming.InitialContext;
import javax.naming.NamingException;
import javax.persistence.EntityManager;
import javax.persistence.EntityManagerFactory;
import javax.persistence.EntityTransaction;
import javax.persistence.Persistence;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;
import javax.sql.DataSource;
import java.io.BufferedWriter;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.OutputStreamWriter;
import java.sql.DriverManager;
import java.sql.ResultSet;
import java.sql.SQLException;


public class register extends HttpServlet{

//    private static final EntityManagerFactory entityManagerFactory;
//    private static final String PERSISTENCE_UNIT_NAME = "MyJPADemoPU";
//    Connection conn = null;
//    java.sql.Statement sqlStmt = null; //语句对象
//    ResultSet sqlRst = null; //结果集对象
//   static {
//        entityManagerFactory = Persistence.createEntityManagerFactory(PERSISTENCE_UNIT_NAME);
//    }
//
//    private EntityManager getEntityManager() {
//        return entityManagerFactory.createEntityManager();
//    }
     Connection conn = null;
     java.sql.Statement stmt = null; //语句对象
     ResultSet sqlRst = null; //结果集对象

    protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
        try {
        }catch(Exception e)
        {

        }
    }

    protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
        doGet(request,response);

    }

}
